#include <iostream>
using namespace std;

void TestReserve()
{
	string s1(20,'c');
	cout<<"start status:"<<endl;
	cout<<"size:"<<s1.size()<<" capacity:"<<s1.capacity()<<endl<<endl;
	
	s1.reserve(21);
	cout<<"reserve(21)"<<endl;
	cout<<"size:"<<s1.size()<<" capacity:"<<s1.capacity()<<endl<<endl;

	s1.reserve(15);
	cout<<"n<size:"<<endl;
	cout<<"size:"<<s1.size()<<" capacity:"<<s1.capacity()<<endl<<endl;
	
	s1.reserve(25);
        cout<<"size<=n<=capacity:"<<endl;
        cout<<"size:"<<s1.size()<<" capacity:"<<s1.capacity()<<endl<<endl;

	s1.reserve(50);
        cout<<"n>=capacity:"<<endl;
        cout<<"size:"<<s1.size()<<" capacity:"<<s1.capacity()<<endl<<endl;
}
int main()
{
	TestReserve();
	return 0;
}
